/**
 * @file    :cpp20220403_fuc.cpp
 * @brief   :
 * @author  :renqiang
 * @version :V1.0.0
 * @date    :2022-04-03
 */
#include <iostream>
using namespace std;

class Clock
{
    string hour;
    string minute;
    string second;

public:
    Clock(string newH, string newM, string newS);
    Clock(); //默认构造函数
    void showTime();
    void setTime(string newH, string newM, string newS);
    ~Clock();
};

Clock::Clock(string newH, string newM, string newS) : hour(newH), minute(newM), second(newS)
{
    cout << "gou zao le yi ge Clock" << endl;
}

Clock::Clock() : hour("00"), minute("000"), second("00")
{
    cout << "gou zao le yi ge mo ren Clock" << endl;
}

void Clock::showTime()
{
    cout << hour << ":" << minute << ":" << second << endl;
}

void Clock::setTime(string newH, string newM, string newS)
{
    hour = newH;
    minute = newM;
    second = newS;
}

Clock::~Clock()
{
    cout << "xi gou le yi ge Clock" << endl;
}

int main()
{
    Clock c("18", "03", "01"); // Clock c;
    c.showTime();
    Clock tgh; //默认构造函数
    tgh.showTime();
    cout << "a" << endl;
    return 0;
    cout << "b" << endl;
}